package com.cat3studios.tile.engine;

import org.lwjgl.input.Keyboard;

public abstract class TileMain{
	SubsystemManager mSubsystems;
	TileMain(SubsystemManager subs){
		mSubsystems = subs;
	}
	void mainLoop(){
		while(true){
			try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			if(Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) System.exit(0);
			mSubsystems.updateSubsystems(0);
		}
	}
}